home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2012 February / maximum-cd-2012-02.iso / DiscContents / TheWagerSetup1.2.exe / Assets / Scripts / [85].lua < prev    next >
Encoding:
Text File  |  2011-11-07  |  925 b   |  18 lines

  1. -- Script [85]
  2. Starting = 0;
  3. SeaEvent = 0;
  4.  
  5. CrewID1 = math.random(0, CrewCount);
  6. CrewID2 = math.random(0, CrewCount);
  7.  
  8. while CrewID2 == CrewID1 do
  9.   CrewID2 = math.random(0, CrewCount);
  10. end
  11.  
  12. CrewName1 = GetCrewName(CrewID1);
  13. CrewName2 = GetCrewName(CrewID2);
  14.  
  15. ShowStoryText("The crew seem a little anxious to be rowing back to the ship under such circumstances. So when, having made it back safely, you turn to find " .. CrewName1 .. " rowing only half a boat while " .. CrewName2 .. " is nowhere to be seen, you feel compelled to help the man. Throwing down a piece of rigging, he desperately clambers aboard. For the next hour or so you listen to him talking about how the anguished screams of " .. CrewName2 .. " will haunt his nightmares forever or something; you weren't paying much attention.");
  16.  
  17. KillCrew(CrewID2);
  18. AddCaptainsLog("Made an ill-judged rowboat journey through sharks. Not all made it.");